3.12.23 \(\int (b d+2 c d x)^3 (a+b x+c x^2)^2 \, dx\) [1123]

Optimal. Leaf size=55 \[ \frac {1}{12} \left (b^2-4 a c\right ) d^3 \left (a+b x+c x^2\right )^3+\frac {1}{4} d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^3 \]

[Out]

1/12*(-4*a*c+b^2)*d^3*(c*x^2+b*x+a)^3+1/4*d^3*(2*c*x+b)^2*(c*x^2+b*x+a)^3

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {706, 643} \begin {gather*} \frac {1}{12} d^3 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^3+\frac {1}{4} d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^3 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2)^2,x]

[Out]

((b^2 - 4*a*c)*d^3*(a + b*x + c*x^2)^3)/12 + (d^3*(b + 2*c*x)^2*(a + b*x + c*x^2)^3)/4

Rule 643

Int[((d_) + (e_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[d*((a + b*x + c*x^2)^(p +
 1)/(b*(p + 1))), x] /; FreeQ[{a, b, c, d, e, p}, x] && EqQ[2*c*d - b*e, 0] && NeQ[p, -1]

Rule 706

Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[2*d*(d + e*x)^(m - 1
)*((a + b*x + c*x^2)^(p + 1)/(b*(m + 2*p + 1))), x] + Dist[d^2*(m - 1)*((b^2 - 4*a*c)/(b^2*(m + 2*p + 1))), In
t[(d + e*x)^(m - 2)*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[
2*c*d - b*e, 0] && NeQ[m + 2*p + 3, 0] && GtQ[m, 1] && NeQ[m + 2*p + 1, 0] && (IntegerQ[2*p] || (IntegerQ[m] &
& RationalQ[p]) || OddQ[m])

Rubi steps

\begin {align*} \int (b d+2 c d x)^3 \left (a+b x+c x^2\right )^2 \, dx &=\frac {1}{4} d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^3+\frac {1}{4} \left (\left (b^2-4 a c\right ) d^2\right ) \int (b d+2 c d x) \left (a+b x+c x^2\right )^2 \, dx\\ &=\frac {1}{12} \left (b^2-4 a c\right ) d^3 \left (a+b x+c x^2\right )^3+\frac {1}{4} d^3 (b+2 c x)^2 \left (a+b x+c x^2\right )^3\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 97, normalized size = 1.76 \begin {gather*} \frac {1}{3} d^3 x (b+c x) \left (3 a^2 \left (b^2+2 b c x+2 c^2 x^2\right )+x^2 (b+c x)^2 \left (b^2+3 b c x+3 c^2 x^2\right )+a x \left (3 b^3+11 b^2 c x+16 b c^2 x^2+8 c^3 x^3\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2)^2,x]

[Out]

(d^3*x*(b + c*x)*(3*a^2*(b^2 + 2*b*c*x + 2*c^2*x^2) + x^2*(b + c*x)^2*(b^2 + 3*b*c*x + 3*c^2*x^2) + a*x*(3*b^3
 + 11*b^2*c*x + 16*b*c^2*x^2 + 8*c^3*x^3)))/3

________________________________________________________________________________________

Maple [A]
time = 0.66, size = 46, normalized size = 0.84

method result size
default \(-d^{3} \left (-c \left (c \,x^{2}+b x +a \right )^{4}+\frac {\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{3}}{3}\right )\) \(46\)
gosper \(\frac {x \left (3 c^{5} x^{7}+12 b \,c^{4} x^{6}+8 x^{5} a \,c^{4}+19 x^{5} b^{2} c^{3}+24 a b \,c^{3} x^{4}+15 b^{3} x^{4} c^{2}+6 a^{2} c^{3} x^{3}+27 a \,b^{2} c^{2} x^{3}+6 b^{4} c \,x^{3}+12 x^{2} a^{2} b \,c^{2}+14 x^{2} a \,b^{3} c +b^{5} x^{2}+9 a^{2} b^{2} c x +3 a \,b^{4} x +3 a^{2} b^{3}\right ) d^{3}}{3}\) \(152\)
norman \(\left (\frac {8}{3} a \,c^{4} d^{3}+\frac {19}{3} b^{2} c^{3} d^{3}\right ) x^{6}+\left (4 a^{2} b \,c^{2} d^{3}+\frac {14}{3} a \,b^{3} c \,d^{3}+\frac {1}{3} b^{5} d^{3}\right ) x^{3}+\left (8 a b \,c^{3} d^{3}+5 b^{3} d^{3} c^{2}\right ) x^{5}+\left (3 a^{2} b^{2} c \,d^{3}+a \,b^{4} d^{3}\right ) x^{2}+\left (2 a^{2} c^{3} d^{3}+9 a \,b^{2} c^{2} d^{3}+2 b^{4} c \,d^{3}\right ) x^{4}+c^{5} d^{3} x^{8}+a^{2} b^{3} d^{3} x +4 b \,c^{4} d^{3} x^{7}\) \(183\)
risch \(\frac {1}{3} a^{3} b^{2} d^{3}-\frac {1}{3} d^{3} c \,a^{4}+a^{2} b^{3} d^{3} x +\frac {1}{3} d^{3} b^{5} x^{3}+c^{5} d^{3} x^{8}+2 d^{3} a^{2} c^{3} x^{4}+2 d^{3} b^{4} c \,x^{4}+d^{3} a \,b^{4} x^{2}+4 b \,c^{4} d^{3} x^{7}+4 d^{3} a^{2} b \,c^{2} x^{3}+8 d^{3} a b \,c^{3} x^{5}+9 d^{3} a \,b^{2} c^{2} x^{4}+\frac {14}{3} d^{3} a \,b^{3} c \,x^{3}+\frac {8}{3} d^{3} a \,c^{4} x^{6}+\frac {19}{3} d^{3} b^{2} c^{3} x^{6}+5 d^{3} b^{3} c^{2} x^{5}+3 d^{3} a^{2} b^{2} c \,x^{2}\) \(214\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^2,x,method=_RETURNVERBOSE)

[Out]

-d^3*(-c*(c*x^2+b*x+a)^4+1/3*(4*a*c-b^2)*(c*x^2+b*x+a)^3)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 161 vs. \(2 (51) = 102\).
time = 0.28, size = 161, normalized size = 2.93 \begin {gather*} c^{5} d^{3} x^{8} + 4 \, b c^{4} d^{3} x^{7} + \frac {1}{3} \, {\left (19 \, b^{2} c^{3} + 8 \, a c^{4}\right )} d^{3} x^{6} + a^{2} b^{3} d^{3} x + {\left (5 \, b^{3} c^{2} + 8 \, a b c^{3}\right )} d^{3} x^{5} + {\left (2 \, b^{4} c + 9 \, a b^{2} c^{2} + 2 \, a^{2} c^{3}\right )} d^{3} x^{4} + \frac {1}{3} \, {\left (b^{5} + 14 \, a b^{3} c + 12 \, a^{2} b c^{2}\right )} d^{3} x^{3} + {\left (a b^{4} + 3 \, a^{2} b^{2} c\right )} d^{3} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^2,x, algorithm="maxima")

[Out]

c^5*d^3*x^8 + 4*b*c^4*d^3*x^7 + 1/3*(19*b^2*c^3 + 8*a*c^4)*d^3*x^6 + a^2*b^3*d^3*x + (5*b^3*c^2 + 8*a*b*c^3)*d
^3*x^5 + (2*b^4*c + 9*a*b^2*c^2 + 2*a^2*c^3)*d^3*x^4 + 1/3*(b^5 + 14*a*b^3*c + 12*a^2*b*c^2)*d^3*x^3 + (a*b^4
+ 3*a^2*b^2*c)*d^3*x^2

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 161 vs. \(2 (51) = 102\).
time = 2.55, size = 161, normalized size = 2.93 \begin {gather*} c^{5} d^{3} x^{8} + 4 \, b c^{4} d^{3} x^{7} + \frac {1}{3} \, {\left (19 \, b^{2} c^{3} + 8 \, a c^{4}\right )} d^{3} x^{6} + a^{2} b^{3} d^{3} x + {\left (5 \, b^{3} c^{2} + 8 \, a b c^{3}\right )} d^{3} x^{5} + {\left (2 \, b^{4} c + 9 \, a b^{2} c^{2} + 2 \, a^{2} c^{3}\right )} d^{3} x^{4} + \frac {1}{3} \, {\left (b^{5} + 14 \, a b^{3} c + 12 \, a^{2} b c^{2}\right )} d^{3} x^{3} + {\left (a b^{4} + 3 \, a^{2} b^{2} c\right )} d^{3} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^2,x, algorithm="fricas")

[Out]

c^5*d^3*x^8 + 4*b*c^4*d^3*x^7 + 1/3*(19*b^2*c^3 + 8*a*c^4)*d^3*x^6 + a^2*b^3*d^3*x + (5*b^3*c^2 + 8*a*b*c^3)*d
^3*x^5 + (2*b^4*c + 9*a*b^2*c^2 + 2*a^2*c^3)*d^3*x^4 + 1/3*(b^5 + 14*a*b^3*c + 12*a^2*b*c^2)*d^3*x^3 + (a*b^4
+ 3*a^2*b^2*c)*d^3*x^2

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 194 vs. \(2 (49) = 98\).
time = 0.03, size = 194, normalized size = 3.53 \begin {gather*} a^{2} b^{3} d^{3} x + 4 b c^{4} d^{3} x^{7} + c^{5} d^{3} x^{8} + x^{6} \cdot \left (\frac {8 a c^{4} d^{3}}{3} + \frac {19 b^{2} c^{3} d^{3}}{3}\right ) + x^{5} \cdot \left (8 a b c^{3} d^{3} + 5 b^{3} c^{2} d^{3}\right ) + x^{4} \cdot \left (2 a^{2} c^{3} d^{3} + 9 a b^{2} c^{2} d^{3} + 2 b^{4} c d^{3}\right ) + x^{3} \cdot \left (4 a^{2} b c^{2} d^{3} + \frac {14 a b^{3} c d^{3}}{3} + \frac {b^{5} d^{3}}{3}\right ) + x^{2} \cdot \left (3 a^{2} b^{2} c d^{3} + a b^{4} d^{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)**3*(c*x**2+b*x+a)**2,x)

[Out]

a**2*b**3*d**3*x + 4*b*c**4*d**3*x**7 + c**5*d**3*x**8 + x**6*(8*a*c**4*d**3/3 + 19*b**2*c**3*d**3/3) + x**5*(
8*a*b*c**3*d**3 + 5*b**3*c**2*d**3) + x**4*(2*a**2*c**3*d**3 + 9*a*b**2*c**2*d**3 + 2*b**4*c*d**3) + x**3*(4*a
**2*b*c**2*d**3 + 14*a*b**3*c*d**3/3 + b**5*d**3/3) + x**2*(3*a**2*b**2*c*d**3 + a*b**4*d**3)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 124 vs. \(2 (51) = 102\).
time = 0.83, size = 124, normalized size = 2.25 \begin {gather*} {\left (c d x^{2} + b d x\right )} a^{2} b^{2} d^{2} + \frac {3 \, {\left (c d x^{2} + b d x\right )}^{2} a b^{2} d^{2} + 6 \, {\left (c d x^{2} + b d x\right )}^{2} a^{2} c d^{2} + {\left (c d x^{2} + b d x\right )}^{3} b^{2} d + 8 \, {\left (c d x^{2} + b d x\right )}^{3} a c d + 3 \, {\left (c d x^{2} + b d x\right )}^{4} c}{3 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a)^2,x, algorithm="giac")

[Out]

(c*d*x^2 + b*d*x)*a^2*b^2*d^2 + 1/3*(3*(c*d*x^2 + b*d*x)^2*a*b^2*d^2 + 6*(c*d*x^2 + b*d*x)^2*a^2*c*d^2 + (c*d*
x^2 + b*d*x)^3*b^2*d + 8*(c*d*x^2 + b*d*x)^3*a*c*d + 3*(c*d*x^2 + b*d*x)^4*c)/d

________________________________________________________________________________________

Mupad [B]
time = 0.07, size = 152, normalized size = 2.76 \begin {gather*} c^5\,d^3\,x^8+a^2\,b^3\,d^3\,x+4\,b\,c^4\,d^3\,x^7+\frac {b\,d^3\,x^3\,\left (12\,a^2\,c^2+14\,a\,b^2\,c+b^4\right )}{3}+\frac {c^3\,d^3\,x^6\,\left (19\,b^2+8\,a\,c\right )}{3}+c\,d^3\,x^4\,\left (2\,a^2\,c^2+9\,a\,b^2\,c+2\,b^4\right )+a\,b^2\,d^3\,x^2\,\left (b^2+3\,a\,c\right )+b\,c^2\,d^3\,x^5\,\left (5\,b^2+8\,a\,c\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*d + 2*c*d*x)^3*(a + b*x + c*x^2)^2,x)

[Out]

c^5*d^3*x^8 + a^2*b^3*d^3*x + 4*b*c^4*d^3*x^7 + (b*d^3*x^3*(b^4 + 12*a^2*c^2 + 14*a*b^2*c))/3 + (c^3*d^3*x^6*(
8*a*c + 19*b^2))/3 + c*d^3*x^4*(2*b^4 + 2*a^2*c^2 + 9*a*b^2*c) + a*b^2*d^3*x^2*(3*a*c + b^2) + b*c^2*d^3*x^5*(
8*a*c + 5*b^2)

________________________________________________________________________________________